﻿package system.download;

import java.util.Vector;

import framework.core.*;

public class JwxtSrv extends IHandler {

    public JwxtSrv() {
        super();
    }

    private void listFile(DBConnection con, SrvContext context,ILoginContext loginContext) throws Exception {
        String path = FileBusiness.getRealPath();
        Vector vec = FileBusiness.getFiles(path);
        context.setSessionValue("list", vec);
    }

    private void getFile(DBConnection con, SrvContext context, String path) throws Exception {
        
    }

    public void doAction(DBConnection con, SrvContext context, ILoginContext loginContext) throws Exception {
        String action_code = context.getActionCode();
        String path = "/system/base/";
        if (action_code.equalsIgnoreCase("jwxtFileList")) {
            listFile(con, context,loginContext);
            context.setNextUrl(path + "JwxtFileList.jsp");
            return;
        }
    }
}
